from flask import Blueprint,render_template
from .models import Article
bp = Blueprint('blog',__name__,url_prefix='/blog',template_folder='templates',static_folder='static')
@bp.route('/index')
def index():
    title = 'hello Blog'
    post = Article.query.get(1)
    print(post.__dict__)
    return render_template('index.html',**locals())